import React from 'react'

export default function Count(props) {
  console.log(props)
  return (
    <div>
      <p>{props.xxx}</p>
      <button
        onClick={() => {
          props.dispatch({ type: 'INCREMENT', num: 10 })
        }}
      >
        +
      </button>
    </div>
  )
}
